package com.cx.mall.common.entity.user.model;

import com.baomidou.mybatisplus.core.toolkit.AES;
import com.cx.mall.common.entity.user.entity.UserReceiveAddress;
import com.cx.mall.common.util.EncryptUtils;
import lombok.Data;

@Data
public class UserReceiveAddressDTO extends UserReceiveAddress {

    private String receiveAddress;

    public String getReceiveAddress() {
        return getProvince() + getCity() + getRegion() + getDetailAddress();
    }
    @Override
    public String getPhoneNumber() {
        return EncryptUtils.hiddenPhoneNumber(super.getPhoneNumber());
    }
}
